package com.tarry.web;

import com.tarry.service.ConfigService;
import com.tarry.web.domian.vo.ResultEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.Map;

@RestController
public class ConfigController {
    @Resource
    ConfigService configService;

    @RequestMapping("get/info")
    public ResultEntity<HashMap> getInfo(){
        return ResultEntity.success(configService.getConfigInfo());
    }

}
